// ==UserScript==
// @name         Auto Click Confirm Button
// @namespace    http://tampermonkey-script-examples
// @version      1
// @description  Automatically click confirm button on a page with class "layui-layer-btn0"
// @match        https://example.com/*
// @grant        none
// ==/UserScript==

(function() {
    console.log('use strict');

    let confirmBtn = document.querySelector('.layui-layer-btn0');
    if (confirmBtn) {
        console.log("点击一次。")
        confirmBtn.click();
    }
})();
